package com.dailyblue.java.spring.aop.annotation;

import com.dailyblue.java.spring.aop.annotation.target.UserDAO;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {

    public static void main(String[] args) {
        ApplicationContext beans = new AnnotationConfigApplicationContext("com.dailyblue.java.spring.aop.annotation");
        UserDAO udao = beans.getBean(UserDAO.class);
        // udao.update("aa",1);
        // udao.save("aaa");
        // udao.findById(1);
        udao.error(2);
    }
}
